package com.bwf.generic;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/24 13:46
 * @Copyright 博为峰
 */
public class MyColl<B> {
    private B str;

    public B getStr() {
        return str;
    }

    public void setStr(B str) {
        this.str = str;
    }

    //泛型方法
    public <T> void show(T str){
        System.out.println(str);
    }
}
